set(target_name "07_buffer1")
set(BASE_SRC
  ../logging/Logging.cc
  ../logging/LogStream.cc
  ../thread/Thread.cc
  ../datetime/Timestamp.cc
)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/reactor SRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/tcp SRC)

add_executable(${target_name} ${SRC} ${BASE_SRC} test3.cc)
# 开启编译器更多检测
if(COMPILEOPTIONS)
	include(ExtraWarnings)
	apply_extra_warnings_to_target(${target_name})
endif()

target_include_directories(
    ${target_name} 
    PRIVATE
    ./reactor
    ./tcp
    ../
    .
)

target_link_libraries(
    ${target_name}
    PRIVATE 
    pthread
)

set(target_name "07_buffer2")
set(BASE_SRC
  ../logging/Logging.cc
  ../logging/LogStream.cc
  ../thread/Thread.cc
  ../datetime/Timestamp.cc
)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/reactor SRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/tcp SRC)

add_executable(${target_name} ${SRC} ${BASE_SRC} test8.cc)
# 开启编译器更多检测
if(COMPILEOPTIONS)
	include(ExtraWarnings)
	apply_extra_warnings_to_target(${target_name})
endif()

target_include_directories(
    ${target_name} 
    PRIVATE
    ./reactor
    ./tcp
    ../
    .
)

target_link_libraries(
    ${target_name}
    PRIVATE 
    pthread
)
